package com.hehui.partimejob.activity.signin;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;

import com.hehui.partimejob.BaseActivity;
import com.hehui.partimejob.R;
import com.hehui.partimejob.js.signin.SignInJSFace;
import com.hehui.partimejob.view.BaseWebView;

public class SignInActivity extends BaseActivity {
    private WebView wv;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BaseWebView baseWebView = new BaseWebView(wv);
        baseWebView.addJavascriptInterface(new SignInJSFace(this));
        baseWebView.loadFromAsset("signIn.html");
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_sign_in;
    }

    @Override
    public void init() {
        getNavView().hide();
        wv = (WebView) findViewById(R.id.wv);
    }
}